home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 118 / MacAddict 118 2006-06.toast / Software / Development / REALbasic 2006 (demo).dmg / .Trashes / 501 / HTMLViewer Read Me.txt < prev    next >
Text File  |  2004-11-09  |  2KB  |  35 lines

  1. The HTMLViewer control provides both HTML rendering and basic navigation. It leverages technologies that are installed on the platform targeted. On Mac OS X, it will use WebKit which Apple's Safari is based upon. WebKit is installed by default on Mac OS X 10.3 and higher, and is available for download for Mac OS X 10.2. On Windows, it will utilize Internet Explorer. On Linux, it will utilize Mozilla.
  2.  
  3. Properties:
  4.    IsAvailable as Boolean
  5.      This property reflects as to whether the HTMLViewer was able to load up the libraries for the platform it is running on.
  6.  
  7. Events:
  8.    DocumentBegin( URL as String )
  9.       Fires when the web page is starting to load.
  10.    DocumentProgressChanged( URL as String, percentage as Integer )
  11.       Fires when the progress has been updated. If percentage is -1, a percentage cannot be determined.
  12.    DocumentComplete( URL as String )
  13.       Fires when the web page is finished loading.
  14.    NewWindow() as HTMLViewer
  15.       Fires when a new window should open up. Return a new instance of an HTMLViewer to load the new page in that viewer, or return nil if you wish to not allow the window to open.
  16.    Error( errorNumber as Integer, errorMessage as String )
  17.       Fires when an error occurs.
  18.    TitleChanged( newTitle as String )
  19.       Fires when the title of the web page has been determined or changed.
  20.    StatusChanged( newStatus as String )
  21.       Fires when the status text has changed for the window.
  22.    CancelLoad( URL as String ) as Boolean
  23.       Return true to cancel loading the web page. This fires before DocumentBegin.
  24.    SecurityChanged( IsSecure as Boolean )
  25.       Fires when the document's security has changed. For example, entering a secure website will cause this event to fire. This is not available on Linux.
  26.  
  27. Methods:
  28.    LoadURL( URL as String )
  29.       Loads the URL specified.
  30.    LoadPage( source as String, relativeTo as FolderItem )
  31.       Loads the HTML given to it. Any links will be resolved relative to the "relativeTo" folderitem specified.
  32.    LoadPage( file as Folderitem )
  33.       Loads the file specified.
  34.    Cancel()
  35.       Cancels any current operations.